class CreateFuelTaxes < ActiveRecord::Migration
  def self.up
    create_table :fuel_taxes do |t|
      t.string :fromto              ,:limit => 6 #航段
      t.integer :km                 ,:limit => 2 ,:default => 0
      t.integer :tax                ,:limit => 2 ,:default => 0
      t.integer :is_locked          ,:limit => 1 ,:default => 0 #是否管理会要锁定 1为True 0为False
      t.timestamps
    end
  end

  def self.down
    drop_table :fuel_taxes
  end
end
